package com.itany.corejava.code16_反射;

/**
 * @author Miss Chen
 * @version 1.0
 * @date 2024年08月12日10:00
 */
public class User extends Person{
    public String username;
    private String password;

    public User() {
    }

    private User( String username) {
        this.username = username;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int sum(int i,int j){
        return i+j;
    }
    private double add(double i,double j){
        return i+j;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
